<%@ page language="java" pageEncoding="UTF-8"%>
<%@page import="com.shsh.safemanage.model.PostCheck"%>
<%@page import="com.shsh.safemanage.dao.PostCheckDao"%>
<%@page import="com.shsh.safemanage.dao.DaoCreator"%>
<%@page import="com.shsh.safemanage.util.Constants"%>
<%@page import="com.shsh.safemanage.util.Util"%>
<%
{
	
	Long postcheckID = 0l;
	String postcheckIDStr = (String)request.getParameter(Constants.REQUEST_PARAMETER_POSTCHECK_ID);
	try{
		postcheckID = Long.parseLong(postcheckIDStr);
	} catch (Exception e){
		
	}
	
	PostCheckDao postcheckDao = DaoCreator.createPostCheckDao();
	PostCheck postcheck = postcheckDao.getPostCheck(postcheckID);
	
	int[] currentDate = Util.getCurrentDate();
	if(postcheck!=null){
%>
<div class="hider" id="hider">
	<span>&nbsp;</span>
</div>
<div class="position">
	<img src="images/position2.jpg" style="padding: 7px 9px; float: left;" />当前位置：上海高桥分公司问题管理平台 &gt;&gt; <%=postcheck.getCheckName() %>岗检 &gt;&gt;浏览
</div>
<div class="tt">浏览</div>
<div class="content">
	<table border="0" style="width:100%;align:center;">
		<tr>
			<td style="vertical-align: middle;" class="td3" align="right" width="43%">
			 	<img src="images/arrow.jpg" />
			</td>
			<td style="vertical-align: middle;" align="left" class="td3">
			 	<a href="javascript:" onclick="openPostcheckBrowse();" style="font-weight: bold; font-size: 12pt">查出问题和考核汇总</a>
			</td>
		</tr>
		<tr>
			<td style="vertical-align: middle;" class="td3" align="right" width="43%">
				<img src="images/arrow.jpg" />
			</td>
			<td style="vertical-align: middle;" align="left" class="td3">
			 	<a href="javascript:" onclick="openPostcheckSummaryReport()" style="font-weight: bold; font-size: 12pt">岗检管理记录一览表</a>
			</td>
		</tr>
	</table>
</div>
<script type="text/javascript">
function openPostcheckBrowse() {
	loadPageSection('<%=request.getContextPath()%>/postcheck_browse.jsp', 'mainContentDiv', {postcheckID: <%=postcheck.getId() %>}, true);
}
function openPostcheckSummaryReport() {
	loadPageSection(
			'<%=request.getContextPath()%>/postcheck/report/postcheck_summary_report.jsp', 
			'mainContentDiv', 
			{
				postcheckID: <%=postcheck.getId() %>,
				year: <%=currentDate[0]%>,
				month: <%=currentDate[1]%>
			}, 
			true
		);
}
</script>
<%
	}
}
%>